using System.ComponentModel.DataAnnotations;

namespace Universal.Application.Contracts.Dto.User;


/// <summary>
/// 分配或移除角色
/// </summary>
public record AssignRolesDto
{
    [Required(ErrorMessage = "用户ID不能为空")]
    public Guid UserId { get; set; }

    [Required(ErrorMessage = "角色ID不能为空")]
    public IEnumerable<Guid>? RoleIds { get; set; }

}